package com.cosmoplat.xikai.business.domain.dto.scada;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@ApiModel(value = "设备故障管理")
@Data
public class DeviceFaultDto {
    @ApiModelProperty(value = "设备编号", example = "EW000008")
    private String deviceCode;
    @ApiModelProperty(value = "开始时间", example = "2025-01-01 00:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @ApiModelProperty(value = "故障名称", example = "风机报警")
    private String faultName;
    @ApiModelProperty(value = "结束时间", example = "2025-01-01 00:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    @ApiModelProperty(value = "物模型配置", example = "风机报警")
    private Long deviceThingModelId;
    @ApiModelProperty(value = "物模型配置", example = "风机报警")
    private Long scada;
}
